//*******************************************************
//  pp27.java   Java Foundation
//*******************************************************

import java.util.Scanner;

public class pp27
{
    //--------------------------------------------------------
    //  1 h = 3600 s  1 min = 60 s
    //--------------------------------------------------------
    public static void main (String[] args)
    {
    int second, minute, hour, second2;
    
    Scanner scan = new Scanner (System.in);
    
    System.out.print ("the second: ");
    second = scan.nextInt();

    hour = second / 3600;
    minute = (second % 3600) / 60;
    second2 = (second % 3600) % 60;
    
    System.out.println ("hour: " + hour);
    System.out.println ("minute: " + minute);
    System.out.println ("second: " + second2);
    }
}

